/**
 * Created by Administrator on 2016/10/22.
 */
public class Main {

    public static void main(String[] args) {
        PriceHandle priceHandle = new PriceHandle();
        int memeberType = 1;
        switch (memeberType) {
            case 0:
                priceHandle.setMember(new NormalMember());
                break;
            case 1:
                priceHandle.setMember(new GoldMember());
                break;
            case 2:
                priceHandle.setMember(new DiamondMember());
                break;
        }

        System.out.println(priceHandle.getMemberPrice(10.0));
    }
}
